#include "head.h"
void gets_t(int sockfd, char *buf){
    // send the filename to server.c which we want to copy
    // get the filename
    int count = 0;
    char *word[1024];
    /* char *word[10]; */
    char *token = strtok(buf," ");
    while(token != NULL && count < 10){
        word[count] = token;
        ++count;
        token = strtok(NULL," ");
    }
    /* send(sockfd,word[count-1],strlen(word[count-1]),0); //将想要的文件名发给服务端，让服务端传回来 */
    printf("sockfd = %d\n",sockfd);
    recvFile(sockfd,buf);
}
